<h1>Cene</h1>

<div class="tabs">
    <ul>
        <li><?= $this->Html->link('Osiguranje', '#osiguranje') ?></li>
        <li><?= $this->Html->link('Komunalna taksa', '/admin_cene/index_komunalna') ?></li>
        <li><?= $this->Html->link('Porez', '/admin_cene/index_porez') ?></li>
        <li><?= $this->Html->link('Nalpenica', '/admin_cene/index_nalepnica') ?></li>
        <li><?= $this->Html->link('Saobraćajna', '/admin_cene/index_saobracajna') ?></li>
        <li><?= $this->Html->link('tablice', '/admin_cene/index_tablice') ?></li>
    </ul>

    <div id="osiguranje">
        <?= $this->element('../AdminCene/form_osiguranje') ?>
        <br clear="all">
    </div>
</div>

<script type="text/javascript">
$(function(){
    $('.tabs').tabs({
        beforeLoad: function( e, ui ) {
            if (ui.panel.html().length > 0) {
                return false
            } else {
                ui.panel.html('<img src="/img/throbber.grey.gif"> Molim sačekajte...');
            }
        },
        load: function(e, ui) {
            initAjaxForms(ui.panel.find('form.ajax-form'));
        }
    });
})
</script>